package com.xrc.t1;
/**
 * 动物  父类
 * @author
 * @email
 */
public class Animal {
       Integer age;
      private Integer weight;
      private String color;

    public Animal() {
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public  void eat(String foot){
        System.out.println("吃饭饭"+foot);
    }
    public void sleep(){
        System.out.println("睡觉觉");
    }
}
